
<script src="/static/assets/js/theme.js"></script>
<div class="am-g tpl-g">
    <!-- 头部 -->
    <header>
        <!-- logo -->
        <div class="am-fl tpl-header-logo">
            <a href="javascript:;">北斗定位平台</a>
        </div>
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="am-fl tpl-header-switch-button" >
                <span class="am-icon-th-list am-fr am-margin-right-sm sidebar-nav-sub-ico sidebar-nav-sub-ico-rotate" style="color: #999"></span>
            </div>
            <!-- 搜索 -->
            <div class="am-fl tpl-header-search">
                <!--<form class="tpl-header-search-form" action="javascript:;">-->
                    <!--<button class="tpl-header-search-btn am-icon-search"></button>-->
                    <!--<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">-->
                <!--</form>-->
            </div>
            <!-- 其它功能-->
            <div class="am-fr tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="am-text-sm tpl-header-navbar-welcome">
                        <a href="javascript:;" style=" font-weight:bold;"> 您好！<span>{$Think.session.name}</span> </a>
                    </li>

                    <!-- 退出 -->
                    <li class="am-text-sm">
                        <a href="{:url('Index/outLogin')}" style="font-weight:bold;">
                            <span class="am-icon-sign-out"></span> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    </header>
    <!-- 风格切换 -->
    <!--<div class="tpl-skiner">-->
        <!--<div class="tpl-skiner-toggle am-icon-cog">-->
        <!--</div>-->
        <!--<div class="tpl-skiner-content">-->
            <!--<div class="tpl-skiner-content-title">-->
                <!--选择主题-->
            <!--</div>-->
            <!--<div class="tpl-skiner-content-bar">-->
                <!--<span class="skiner-color skiner-white" data-color="theme-white"></span>-->
                <!--<span class="skiner-color skiner-black" data-color="theme-black"></span>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
    <!-- 侧边导航栏 -->
    <div class="left-sidebar" >
        <!-- 用户信息 -->
        <div class="tpl-sidebar-user-panel">
            <div class="tpl-user-panel-slide-toggleable">
                <div class="tpl-user-panel-profile-picture">
                    <img src="/static/assets/img/logoa.jpg" alt=""style="margin-top: -3.65px;margin-left: -46.1px;height: 146.9px;">
                </div>
                <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
                    {if $Think.session.dename}
                    {$Think.session.dename}
                    {else}
                    {$Think.session.name}
                    {/if}
          </span>
                <a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
            </div>
        </div>

        <!-- 菜单 -->
        <ul class="sidebar-nav">

            <li class="sidebar-nav-link">

                <a href="{:url('User/menu')}" {if request()->action()=='menu'||request()->controller()=='user'}class="sub-active"{/if}>
                    <i class="am-icon-user sidebar-nav-link-logo"></i>我的客户
                </a>
            </li>

            <li class="sidebar-nav-link">
                <a href="{:url('Map/map')}" {if request()->action()=='map'||request()->controller()=='Map'}class="sub-active"{/if}>
                    <i class="am-icon-globe sidebar-nav-link-logo"></i>定位监控
                </a>
            </li>


            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title active {if request()->controller()=='Recharge'}sub-active{/if}">
                    <i class="am-icon-money sidebar-nav-link-logo"></i> 充值管理
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico {if request()->controller()=='Recharge'}{else}sidebar-nav-sub-ico-rotate{/if}"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub" style="display: {if request()->controller()=='Recharge'}block{else}none{/if};">
                    {if $Think.session.user.type==1}
                    <li class="sidebar-nav-link">
                        <a href="{:url('Recharge/generate')}" {if request()->action()=='generate'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='generate'}ftt{/if}"></span>
                            点卡生成
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="{:url('Recharge/generate2')}" {if request()->action()=='generate2'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='generate'}ftt{/if}"></span>
                            充值类型
                        </a>
                    </li>
                    {/if}

                    <li class="sidebar-nav-link">
                        <a href="{:url('Recharge/recharge')}" {if request()->action()=='recharge'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='recharge'}ftt{/if}"></span>
                            点数充值
                        </a>
                    </li>


                    <li class="sidebar-nav-link">
                        <a href="{:url('Recharge/consumption')}" {if request()->action()=='consumption'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='consumption'}ftt{/if}"></span> 充值记录
                        </a>
                    </li>
                </ul>
            </li>


            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title active {if request()->controller()=='Equipment'}sub-active{/if}">
                    <i class="am-icon-tasks sidebar-nav-link-logo"></i> 设备管理

                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico {if request()->controller()=='Equipment'}{else}sidebar-nav-sub-ico-rotate{/if}"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub" style="display: {if request()->controller()=='Equipment'}block{else}none{/if};">
                    <li class="sidebar-nav-link">
                        <a href="{:url('Equipment/reg_equipment')}" {if request()->action()=='reg_equipment'}{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='equipment'}ftt{/if}"></span> 全部设备
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="{:url('Equipment/reg_equipment')}?outtime=1" {if request()->action()=='reg_equipment'}{if $Request.get.outtime=='1'}class="sub-active"{/if}{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='seven_expire'}ftt{/if}"></span> 7天内过期的设备
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="{:url('Equipment/reg_equipment')}?outtime=2" {if request()->action()=='reg_equipment'}{if $Request.get.outtime=='2'}class="sub-active"{/if}{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='sixty_expire'}ftt{/if}"></span> 60天内过期的设备
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="{:url('Equipment/reg_equipment')}?outtime=3" {if request()->action()=='reg_equipment'}{if $Request.get.outtime=='3'}class="sub-active"{/if}{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='dies_venit'}ftt{/if}"></span> 已过期的设备
                        </a>
                    </li>
                </ul>
            </li>


            <li class="sidebar-nav-link">
                <a href="javascript:;" class="sidebar-nav-sub-title active {if request()->controller()=='Statistics'}sub-active{/if}">
                    <i class="am-icon-table sidebar-nav-link-logo"></i> 统计报表
                    <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico {if request()->controller()=='Statistics'}{else}sidebar-nav-sub-ico-rotate{/if}"></span>
                </a>
                <ul class="sidebar-nav sidebar-nav-sub" style="display: {if request()->controller()=='Statistics'}block{else}none{/if};">
                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/run_count')}"{if request()->action()=='run_count'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='run_count'}ftt{/if}"></span> 运行统计-->
                        <!--</a>-->
                    <!--</li>-->

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/run_count')}" {if request()->action()=='run_count'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='run_count'}ftt{/if}"></span> 里程统计-->
                        <!--</a>-->
                    <!--</li>-->

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/run_count')}" {if request()->action()=='run_count'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='run_count'}ftt{/if}"></span> 超速详单-->
                        <!--</a>-->
                    <!--</li>-->

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/stop_details')}" {if request()->action()=='stop_details'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='stop_details'}ftt{/if}"></span> 停留详单-->
                        <!--</a>-->
                    <!--</li>-->

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/callpolice_count')}" {if request()->action()=='callpolice_count'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='callpolice_count'}ftt{/if}"></span> 报警统计-->
                        <!--</a>-->
                    <!--</li>-->

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/callpolice_overview')}" {if request()->action()=='callpolice_overview'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='callpolice_overview'}ftt{/if}"></span> 报警总览-->
                        <!--</a>-->
                    <!--</li>-->

                    <li class="sidebar-nav-link">
                        <a href="{:url('Statistics/callpolice_details')}" {if request()->action()=='callpolice_details'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='callpolice_details'}ftt{/if}"></span> 报警详单
                        </a>
                    </li>

                    <li class="sidebar-nav-link">
                        <a href="{:url('Statistics/electronic_fence')}" {if request()->action()=='electronic_fence'}class="sub-active"{/if}>
                            <span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='electronic_fence'}ftt{/if}"></span> 电子栅栏
                        </a>
                    </li>

                    <!--<li class="sidebar-nav-link">-->
                        <!--<a href="{:url('Statistics/run_count')}" {if request()->action()=='run_count'}class="sub-active"{/if}>-->
                            <!--<span class="am-icon-circle-o sidebar-nav-link-logo {if request()->action()=='run_count'}ftt{/if}"></span> 路线纠偏报警-->
                        <!--</a>-->
                    <!--</li>-->
                </ul>
            </li>

            <!--<li class="sidebar-nav-link">-->
                <!--<a href="data_analysis.html">-->
                    <!--<i class="am-icon-leanpub sidebar-nav-link-logo"></i>分析统计-->
                <!--</a>-->
            <!--</li>-->
            <!--<li class="sidebar-nav-link">-->
                <!--<div class="dswi" ></div>-->
                <!--<div class="am-fl tpl-header-switch-button dao " >-->
                    <!--<span class="am-icon-forward am-fr am-margin-right-sm sidebar-nav-sub-ico sidebar-nav-sub-ico-rotate" style=""></span>-->
                <!--</div>-->
            <!--</li>-->
        </ul>
    </div>
</div>
<script>
    $(function () {
        $('.tpl-header-fluid').on('click',function () {
            if( $('.dao').children().css('transform')== 'matrix(-1.83697e-16, -1, 1, -1.83697e-16, 0, 0)'){
                $('.dao').children().css('transform',' rotate(90deg)');
            }else {
                $('.dao').children().css('transform',' rotate(270deg)');
            }

        })
    })
</script>
